
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<html>
<head>
    <title>查询</title>
</head>
<body>
<table width="100%" border=1>
    <tr>
        <td>ID</td>
        <td>用户名</td>
        <td>密码</td>
        <td>电话</td>
        <td>真实名字</td>
        <td></td>
    </tr>
    <c:forEach items="${user}" var="item">
    <tr>

        <td>${item.id }</td>
        <td>${item.username }</td>
        <td>${item.password }</td>
        <td>${item.mobil }</td>
        <td>${item.realName }</td>
        <td><a href="${pageContext.request.contextPath }/test/edit?id=${item.id}"  >修改</a>
            <a href="${pageContext.request.contextPath }/test/deleteByID?id=${item.id}"  >删除</a>
        </td>
    </tr>
    </c:forEach>
</table>
<a href="${pageContext.request.contextPath }/test/add"  >添加</a>
</body>
</html>
